import { createRoot } from 'react-dom/client'
import { BrowserRouter } from 'react-router-dom'
import Router from '@/router'
import { Provider } from 'react-redux'
import { PersistGate } from 'redux-persist/integration/react';
import {store,persistedStore} from '@/store'
import './index.css'

createRoot(document.getElementById('root')!).render(
  <Provider store={store}>
    <PersistGate loading={null} persistor={persistedStore}>
      <BrowserRouter>
        <Router/>
      </BrowserRouter>
    </PersistGate>
  </Provider>
)
